<?php
/**
 * 跃飞科技版权所有 @2017
 * User: 钟贵廷
 * Date: 2017/5/24
 * Time: 9:11
 */
namespace app\admin\validate;

use think\Validate;

class Article extends Validate
{
    protected $rule = [
        'title'  =>  'require',
        'cat_id'  =>  'require',
        'content'  =>  'require',
    ];

    protected $message  =   [
        'title.require' => '文章标题必须!',
        'cat_id.require' => '文章分类必须!',
        'content.require' => '文章内容必须!',
    ];
}